{include file=top.html }
<div id="header" class="w-full">
	<div class="shop-t w-shop clearfix pb10 mb10 mt5">
      <div class="logo mt10">
         <a href="{$site_url}" title="{$site_title}"><img alt="{$site_title}" src="{$site_logo}" /></a>
      </div>
      <div class="top-search">
      	
      	<ul class="top-search-tab clearfix">
            <li {if $smarty.get.act neq 'store' && $smarty.get.act neq 'groupbuy'}class="current"{/if} id="index">
            	<a href="javascript:;">{$lang.goods}</a><b class="rc-lt"></b><b class="rc-rt"></b></li>
            <li {if $smarty.get.act eq 'store'}class="current"{/if} id="store">
            	<a href="javascript:;">{$lang.store}</a><b class="rc-lt"></b><b class="rc-rt"></b></li>
            <!--<li {if $smarty.get.act eq 'groupbuy'}class="current"{/if} id="groupbuy">
            	<a href="javascript:;">{$lang.sgroupbuy}</a><b class="rc-lt"></b><b class="rc-rt"></b>
            </li>
			-->
         </ul>
         
         <div class="top-search-box clearfix">
         	<div class="form-fields">
           		<form method="GET" action="{url app=search}">
               		<input type="hidden" name="app" value="search" />
               		<input type="hidden" name="act" value="{if $smarty.get.act eq 'store'}store{elseif $smarty.get.act eq 'groupbuy'}groupbuy{else}index{/if}" />
               		<input type="text"   name="keyword" value="{$smarty.get.keyword}" class="keyword {if !$smarty.get.keyword}kw_bj {if $smarty.get.act eq 'store'}store{elseif $smarty.get.act eq 'groupbuy'}groupbuy{else}index{/if}_bj {/if}" />
               		<input type="submit" value="{$lang.search}" class="submit" hidefocus="true" />
            	</form>
         	</div>
         </div>
         <div class="top-search-keywords">
         	<span>{$lang.hot_search}{$lang.colon}</span>
         	<!--{foreach from=$hot_keywords item=keyword name=fe_keyword}-->
    		<a {if $smarty.foreach.fe_keyword.first == 1}style="color:#ff0000;"{/if} href="{url app=search&keyword=$keyword|escape:url}">{$keyword}</a>
    		<!--{/foreach}-->
         </div>
      </div>
      <div class="member-nav has-eject-box">
      	<div class="title member-nav-title clearfix">
        	<b></b><a href="{url app=member}">用户中心</a><em></em>
        </div>
        <div class="shadow"></div>
        <div class="cart-list  eject-box">
			<div class="login-status">
            	你好，<!--{if !$visitor.user_id}-->请<a href="{url app=member}">登录</a><!--{else}--><a href="{url app=member}">{$visitor.user_name|escape}</a><a href="{url app=member&act=logout}" class="ml5">[{$lang.logout}]</a><!--{/if}-->
            </div>
            <div class="member-nav-list">
            	<ul class="list1 ls">
                	<li><a href="{url app=buyer_order}" target="_blank">我的订单</a></li>
                    <li><a href="{url app=buyer_groupbuy}" target="_blank">我的团购</a></li>
                    <li><a href="{url app=my_question}" target="_blank">咨询回复</a></li>
                    <li><a href="{url app=my_coupon}" target="_blank">优惠券</a></li>
                </ul>
            	<ul class="list2 ls">
                	<li><a href="{url app=friend}" target="_blank">我的好友</a></li>
                    <li><a href="{url app=my_favorite}" target="_blank">我的关注</a></li>
                    <li><a href="{url app=member&act=password}" target="_blank">修改密码</a></li>
                    <li><a href="{url app=find_password}" target="_blank">找回密码</a></li>
                </ul>
            </div>
            <!--{if $smarty.get.app neq goods}-->
            <div class="view-list">
            	<!--{if $g_history}-->
            	<p>我浏览过的商品：</p>
                <ul class="clearfix w-full mt5">
                	<!--{foreach from=$g_history item=h name=fe_h}-->
                	<li class="float-left">
                		<a class="border block" href="{url app=goods&id=$h.goods_id}"><img src="{$h.default_image}" alt="{$h.goods_name}" title="{$h.goods_name|escape}"  width="50" height="50"/></a>
                	</li>
                    <!--{/foreach}-->
                </ul>
                <!--{else}-->
                <div class="w-full center">暂时没有浏的商品览记录</div>
                <!--{/if}-->
            </div>
            <!--{/if}-->
        </div>
      </div>
      <div class="header_cart has-eject-box">
      	<div class="title clearfix">
        	<b></b><a href="{url app=cart}">去购物车结算</a><em></em>
        </div>
        <div class="shoping"><span class="count-cart J_C_T_GoodsKinds">{$cart_goods_kinds}</span></div>
        <div class="shadow"></div>
        <div class="cart-list eject-box">
             <div style="border:0px;" class="goods-list {if !$carts_top.cart_items}hidden{/if}">
            	<h4>最新加入的商品</h4>
            	<!--{foreach from=$carts_top.cart_items item=cart name=fe_cart}-->
                <div class="clearfix list J_CartItem-{$cart.rec_id}">
                    <div class="goods-img">
                        <a href="{url app=goods&id=$cart.goods_id}" target="_top"><img alt="{$cart.goods_name}" src="{$cart.goods_image}" width="40" height="40"></a>
                    </div>
                    <div class="goods-title">
                        <a title="{$cart.goods_name}" href="{url app=goods&id=$cart.goods_id}" target="_top">{$cart.goods_name}</a>
                   </div>
                    <div class="goods-admin">
                         <div class="mini-cart-count"><strong class="mini-cart-price">{$cart.price|price}</strong>x{$cart.quantity}</div>
                         <div class="mini-cart-del"><a href="javascript:;" onclick="drop_cart_item({$cart.store_id}, {$cart.rec_id});">删除</a></div>
                    </div>
               </div>
               <!--{/foreach}-->
            </div>
            <div class="total {if !$carts_top.cart_items}hidden{/if}">
            	<span>共<strong class="J_C_T_GoodsKinds">{$cart_goods_kinds}</strong>件商品</span><span>共计<strong class="J_C_T_Amount">{$carts_top.total_amount|price}</strong></span><br />
                <a href="{url app=cart}">去购物车结算</a>
            </div>
            <!--{if !$carts_top.cart_items}-->
            <div class="nogoods clearfix">
        		<b></b>购物车中还没有商品，赶紧选购吧！
        	</div>
            <!--{/if}-->
        </div>
      </div>
      <script type="text/javascript">
	  	$(function(){
	  		$('.has-eject-box').hover(function(){
				$(this).addClass('active');
			},function(){
				$(this).removeClass('active');
			})
		})
	  </script>
   </div>
    <div  class="w-full mall-nav relative">
    	<div class="mall-bg w-full">
            <ul class="w-shop clearfix">
                <li class="allcategory float-left {if !$index}not-index{/if}">
                    <a class="allsort">所有商品分类<b></b></a>
                    <!--{if !$index}-->
                    <div class="allcategory-list hidden">
                        <div class="content clearfix">
                            <!--{foreach from=$header_gcategories.gcategories item=category name=fe_category}-->
                            <div class="item">
                                <div class="pborder">
                                    <p><a href="{url app=search&cate_id=$category.id}" target="_blank">{$category.value|escape}</a><i>&gt;</i><b class="line"></b></p>
                                </div>
                                <div class="pop" {if $category.top} style="top:{$category.top}"{/if}>
                                    <div class="catlist float-left">
                                        <!--{foreach from=$category.children item=child name=fe_child}--> 
                                        <dl class="clearfix" {if $smarty.foreach.fe_child.last} style="border-bottom:0"{/if}>
                                            <dt class="float-left"><a href="{url app=search&cate_id=$child.id}"><strong>{$child.value|escape}</strong></a></dt>
                                            <dd class="float-left">
                                                <!--{foreach from=$child.children item=child2 name=fe_child2}-->
                                                <a href="{url app=search&cate_id=$child2.id}">{$child2.value|escape}</a>
                                                <!--{/foreach}-->
                                            </dd>
                                        </dl> 
                                        <!--{/foreach}-->
                                    </div>
                                    <div class="catbrand float-left">
                                        <a class="btn-channel" href="{url app=search&cate_id=$category.id}">{$category.value|escape|truncate:16}<ins></ins></a>
                                        <h2>热门品牌</h2>
                                        <ul class="clearfix">
                                            <!-- {foreach from=$category.brands item=brand name=fe_brand} -->
                                            <li class="float-left"><a href="{url app=search&brand=$brand.brand_name|escape:url}" title="{$brand.brand_name}">{$brand.brand_name|escape}</a></li>                                  		
                                            <!-- {/foreach} -->
                                        </ul>
                                    </div>           
                                </div>
                            </div>
                            <!--{/foreach}-->
                        </div>
                    </div>
                    <!--{/if}-->
                </li>
                <li class="each float-left inline-block"><a class="{if $index}current{/if}" href="{$site_url}">{$lang.home}</a></li>
                <!--{foreach from=$navs.middle item=nav name=fe_nav}-->
                <li class="each float-left inline-block"><a class="{if !$index and $nav.link eq $current_url}current{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}{if $smarty.foreach.fe_nav.iteration eq 1}<span class="absolute block"></span>{/if}</a></li>
                <!--{/foreach}-->
                <!--{if $index}-->
                <li class="float-right nav-ads">
                    <a href="http://www.psmoban.com"><img src="static/images/53869ba6Nbefa1e38.gif" /></a>
                </li>
                <!--{/if}-->
            </ul>
        </div>
    </div>
</div>
<!------------------------banner and nav-------------------------------->
<div id="nav" class="w-full">
    <div class="banner">
    	<a href="{url app=store&id=$store.store_id}" class="w-full block" style=" background:url(
        	<!--{if $store.store_banner}-->
            {$store.store_banner}
            <!--{else}-->
            {res file=images/store_banner.png}
            <!--{/if}-->
        ) no-repeat center center; height:119px;"></a>
    </div>
	<div class="shop-nav w-full">
        <ul class="w J_ShopNav">
            <li><a  href="{$site_url}/{url app=store&id=$store.store_id}"><span>{$lang.store_index}</span></a></li>
            {if $store.functions.groupbuy and $store.enable_groupbuy}
            <li><a href="{$site_url}/{url app=store&act=groupbuy&id=$store.store_id}"><span>{$lang.nav_groupbuy}</span></a></li>
            {/if}
           
            <!--{foreach from=$store.store_gcates item=gcategory}-->
            <li><a href="{url app=store&id=$store.store_id&act=search&cate_id=$gcategory.id&from=nav}"><span>{$gcategory.value|escape}</span></a></li>
            <!--{/foreach}-->
            
            <!--{foreach from=$store.store_navs item=store_nav}-->
            <li><a href="{$site_url}/{url app=store&act=article&id=$store_nav.article_id}"><span>{$store_nav.title|escape}</span></a></li>
            <!--{/foreach}-->
            <li><a href="{$site_url}/{url app=store&act=credit&id=$store.store_id}"><span>{$lang.credit_evaluation}</span></a></li>
            
            <!--{if $smarty.get.app eq 'store' && $smarty.get.act eq 'search' && $smarty.get.id && !$smarty.get.cate_id}-->
            <li><a class="current" href="{$site_url}/{url app=store&act=search&id=$smarty.get.id}"><span>{$lang.all_goods}</span></a></li>
            <!--{/if}-->
            <!--{if $smarty.get.app eq 'store' && $smarty.get.act eq 'search' && $smarty.get.cate_id && !$smarty.get.from}-->
            <li><a class="current" href="{$site_url}/{url app=store&act=search&cate_id=$smarty.get.cate_id}"><span>{$lang.goods_search}</span></a></li>
            <!--{/if}-->
            <!--{if ($smarty.get.app eq 'goods' && $smarty.get.id) || ($smarty.get.app eq 'groupbuy' && $smarty.get.id)}-->
            <li><a class="current" href="{$site_url}/{url app=goods&id=$goods.goods_id}"><span>{$lang.goods_detail}</span></a></li>
            <!--{/if}--> 
        </ul>
    </div>
</div>
<!------------------------banner and nav end-------------------------------->